package cn.tedu.csmall.product.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 添加商品的DTO类
 *
 * @author java@tedu.cn
 * @version 0.0.1
 */
@Data
public class BrandAddNewDTO implements Serializable {

    /**
     * 相册名称
     */
    @ApiModelProperty(value = "商品名称", required = true)
    @NotNull(message = "必须提交商品名称")
    private String name;
    /**
     * 商品名称拼音
     */
    @ApiModelProperty(value = "拼音", required = true)
    private String pinyin;

    /**
     * 商品logo
     */
    @ApiModelProperty(value = "logo", required = true)
    private String logo;


    /**
     * 商品简介
     */
    @ApiModelProperty(value = "商品简介", required = true)
    @NotNull(message = "必须提交商品简介")
    private String description;
    /**
     * 商品关键词列表
     */
    @ApiModelProperty(value = "商品关键词列表", required = true)
    @NotNull(message = "必须提交商品关键词列表")
    private String keywords;

    /**
     * 排序序号
     */
    @ApiModelProperty(value = "排序序号", required = true)
    @Range(max = 255)
    private Integer sort;
    /**
     * 销量
     */
    @ApiModelProperty(value = "销量", required = true)
    @Range(max = 255)
    private Integer sales;
    /**
     * 产品总类数量总和
     */
    @ApiModelProperty(value = "产品总类数量总和", required = true)
    @Range(max = 255)
    private Integer productCount;
    /**
     * 买家评论数量总和
     */
    @ApiModelProperty(value = "买家评论数量总和", required = true)
    @Range(max = 255)
    private Integer commentCount;
    /**
     * 买家好评数量总和
     */
    @ApiModelProperty(value = "买家好评数量总和", required = true)
    @Range(max = 255)
    private Integer privateCommentCount;
    /**
     * 是否启用
     */
    @ApiModelProperty(value = "是否启用,1启用", required = true)
    @Range(max = 255)
    private Integer enable;

}